<!DOCTYPE html>
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
    <style>
        a{
            margin: 0 auto;
        }
        #arr1{
            display:block;
            text-align: center;
            width: 300px;
            height: 40px;
            line-height:40px;
            background: orange;
            color: white;
            border-radius: 2px;
            box-shadow: 0 5px 0 0 lightgrey;
        }
        .disable {
            background: #d6d6d6 !important;
            color: #999 !important;
        }
    </style>
</head>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top"><span style="display: none;">加载中...</span> <span>每天欢乐送</span> <!---->
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Index/activity')}" class="iconfont back"></a>
    </header>

    <div data-v-3cbfc35c="" class="activityMian main" s="[object Object]">
        <div data-v-3cbfc35c="" class="activiTop"><img data-v-3cbfc35c="" alt="" width="100%" src="/style/images/sjkuailesong.png">
            <div data-v-128082f2="" class="rewardStatus">
                <em data-v-128082f2="" class="e1">今日投注：
                    <input type="hidden" value="{$id}" id="uid3">
                    <i data-v-128082f2="">
                        <input type="text" id="touzhu" value="<?php if($arr1['level']==''){echo '未登录';}else{echo sprintf('%.2f',$touzhu1);};?>" style="border: hidden;color: orangered;width: 80px" readonly>
                    </i>
                </em>
                <em data-v-128082f2="" class="e3">&nbsp;&nbsp;余&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额：
                    <i data-v-128082f2="">
                        <input type="text" value="<?php if($arr1['level']==''){echo '0.00';}else{echo sprintf('%.2f',$Accountsinfo['money']);};?>" style="border: hidden;color: orangered;width: 80px" readonly>
                    </i>
                </em>
                <em data-v-128082f2="" class="e4">可得奖金：
                    <i data-v-128082f2="">
                        <input type="text" value="{$jiang_jins}" class="jiangjin1" style="border: hidden;color: orangered;width: 80px" readonly>
                    </i>
                </em>
            </div>
            <div id="cen">
                <a data-v-5be8b080="" href="javascript:;" id="arr1" class="<?php if($arr1['type']=='3' && $arr1['is_lingqu']!='0'){echo 'disable';} ?> dianji1" >
                    领取
                </a>
            </div>
        </div>
        <h3 data-v-3cbfc35c="">奖金比例</h3>
        <table data-v-3cbfc35c="">
            <tbody>
            <tr data-v-3cbfc35c="" >
                <th data-v-3cbfc35c="">等级</th>
                <th data-v-3cbfc35c="">投注>=888元&nbsp;&nbsp;&&&nbsp;&nbsp;余额>88元</th>
                <th data-v-3cbfc35c="">投注>=8888元&nbsp;&nbsp;&&&nbsp;&nbsp;余额>888元</th>
                <th data-v-3cbfc35c="">投注>=88888元&nbsp;&nbsp;&&&nbsp;&nbsp;余额>8888元</th>
            </tr>
            <tr data-v-3cbfc35c="">
                <td data-v-3cbfc35c="">初级</td>
                <td data-v-3cbfc35c="">8&nbsp;元</td>
                <td data-v-3cbfc35c="">—</td>
                <td data-v-3cbfc35c="">—</td>
            </tr>
            <tr data-v-3cbfc35c="">
                <td data-v-3cbfc35c="">中级</td>
                <td data-v-3cbfc35c="">—</td>
                <td data-v-3cbfc35c="">58&nbsp;元</td>
                <td data-v-3cbfc35c="">—</td>
            </tr>
            <tr data-v-3cbfc35c="">
                <td data-v-3cbfc35c="">高级</td>
                <td data-v-3cbfc35c="">—</td>
                <td data-v-3cbfc35c="">—</td>
                <td data-v-3cbfc35c="">388&nbsp;元</td>
            </tr>
            </tbody></table>
        <h3 data-v-3cbfc35c="">活动说明</h3>

        <div data-v-3cbfc35c="" class="wrapExplain"> <p>
            1、活动领取时间每天09:30至23:50；
        </p>

            <p>
                2、初级奖励:用户消费888元且余额大于88可领奖8元；
            </p>

            <p>
                3、中级奖励:用户消费8888元且余额大于888可领奖58元；
            </p>

            <p>
                4、高级奖励:用户消费88888元且余额大于8888可领奖388元；
            </p>
        </div>
    </div>
</div>
<!--弹框 begian-->
<div id="dengji" class="layermbox layermbox0 layermshow" index="10" style="display: none">
    <div class="laymshade"></div>
    <div class="layermmain">
        <div class="section">
            <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                <button class="layermend"></button>
                <div class="layermcont">请登录
                </div>
                <div class="layermbtn"><span type="1">确定</span></div>
            </div>
        </div>
    </div>
</div>
<!--弹框 end-->
<!--弹框 begian-->
<div id="guoshi" class="layermbox layermbox0 layermshow" index="10" style="display: none">
    <div class="laymshade"></div>
    <div class="layermmain">
        <div class="section">
            <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                <button class="layermend"></button>
                <div class="layermcont">
                    <p>1.该奖金已经领取</p>
                    <p>2.活动领取时间每天09:30至23:50</p>
                    <p>3.用户消费未满888元或余额没有大于88元</p>
                </div>
                <div class="layermbtn"><span type="1">确定</span></div>
            </div>
        </div>
    </div>
</div>
<!--弹框 end-->
<!--弹框 begian-->
<div id="lingqu2" class="layermbox layermbox0 layermshow" index="10" style="display: none">
    <div class="laymshade"></div>
    <div class="layermmain">
        <div class="section">
            <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                <button class="layermend"></button>
                <div class="layermcont">领取成功
                    <p>
                        金额为：<input type="text"  class="eee" style="border: hidden;color: orangered;width: 60px" readonly>
                    </p>

                </div>
                <div class="layermbtn"><span type="1">确定</span></div>
            </div>
        </div>
    </div>
</div>
<!--弹框 end-->
</body>
</html>
<script>
    $(".layermbtn").click(function(){
        $(".layermbox").hide();
        window.location.href = "";
    })

    var touzhu = $("#touzhu").val();
    var jiangjin = $(".jiangjin1").val();

    if(jiangjin == 0.00){
        $(".dianji1").addClass("disable");
    }
    //欢乐送未登录
    if(touzhu=='未登录'){
        $(".dianji1").addClass("disable");
    }
    //每日欢乐颂领取
    $(".dianji1").click(function () {
        var uid = $("#uid3").val();
        if(uid==''){
            $("#dengji").show();
            return false;
        }
        var touzhu = $("#touzhu").val();
        var jiangjin1 = $(".jiangjin1").val();

        var type = 3;
        if($("#arr1").hasClass("disable")){
            $("#guoshi").show();
            return false;
        }else {
            $.ajax({
                type: "POST",
                url: "{:U('Index/huanlesong')}",
                data: {'jiangjin123': jiangjin1,'type':type},
                success: function (dat) {
                    if(dat==2){
                        $("#guoshi").show();
                        $(".dianji1").addClass("disable");
                        return false;
                    }
                    var dat1 = dat;
                    var aaa = parseInt(dat1.substring(0,1));
                    var bbb = parseInt(dat1.substr(1)) + '.00';
                    $(".eee").val(bbb);
                    if (aaa == 1) {
                        $("#lingqu2").show();
                        $(".dianji1").addClass("disable");
                    }
                }
            });
        }

    });
</script>